//go:build (windows || darwin) && (amd64 || 386)
// +build windows darwin
// +build amd64 386

package utils

// Copyright (c) 2013-2015 VividCortex, Inc. All rights reserved.
// Please see the LICENSE file for applicable license terms.

import (
	"io"
	"os"
)

// Environment variables to support this process
const (
	stageVar    = "__DAEMON_STAGE"
	fdVarPrefix = "__DAEMON_FD_"
)

// DaemonAttr describes the options that apply to daemonization
type DaemonAttr struct {
	ProgramName   string      // child's os.Args[0]; copied from parent if empty
	CaptureOutput bool        // whether to capture stdout/stderr
	Files         []**os.File // files to keep open in the daemon
}

/*
MakeDaemon turns the process into a daemon. But given the lack of Go's
*/
func MakeDaemon(attrs *DaemonAttr) (io.Reader, io.Reader, error) {
	var stdout, stderr *os.File
	return stdout, stderr, nil
}
